import request from "@/utils/request";

// 获取医生的随访记录列表
export function getVisits(data) {
  return request({
    url: `/api/FollowRecord/list/`,
    method: "post",
    data,
  });
}

// 删除随访记录
export function removeVisit(visitId) {
  return request({
    url: `/api/FollowRecord/${visitId}`,
    method: "delete",
  });
}

// 新增随访记录
export function addVisit(data) {
  return request({
    url: "/api/FollowRecord/add",
    method: "post",
    data,
  });
}

// 更新随访记录
export function updateVisit(data) {
  return request({
    url: "/api/FollowRecord/update",
    method: "post",
    data,
  });
}
